import service from '../utils/axios.js'
//登录
	
const clientApi ={
	//债务人登录
	 obligorLogin(params){
	    return service({
	       url:'user/obligorLogin',
	        method: 'post',
	        data: params,
	    });
	},
	//债权人登录
	 creditorLogin(params){
	    return service({
	        url:'user/creditorLogin',
	        method: 'post',
	        data: params,
	    });
	},
	//债务人注册
	registerPost(params){
		return service({
		    url:'user/register',
		    method: 'post',
		    data: params,
		});
	},
	//债务人认证
	profilePost(params){
		return service({
		    url:'user/profile',
		    method: 'post',
		    data: params,
		});
	},
	//获取银行列表
	bankListGet(params){
		return service({
		    url:'user/bankList',
		    method: 'post',
		    data: params,
		});
	},
	//发送验证码
	sendPost(params){
		return service({
		    url:'sms/send',
		    method: 'post',
		    data: params,
		});
	},
	//短信验证码登录
	mobilelogin(params){
		return service({
		    url:'user/mobilelogin',
		    method: 'post',
		    data: params,
		});
	},
}
export default clientApi